﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class ViewMovies : System.Web.UI.Page
{
    Product pd = new Product();
    tblMovie mv;
    protected void Page_Load(object sender, EventArgs e)
    {

        this.mv = pd.GetMovieById2(Session["MovieID"].ToString());
        imgAvata.ImageUrl = "images/Movie/" + mv.Avata + "";
        DateTime sart = new DateTime();
        sart = DateTime.Parse(mv.ReleasedDay.ToString()).Date;
        DateTime end = new DateTime();
        end = DateTime.Parse(mv.CloseDay.ToString()).Date;
        lblMovieName.Text = mv.MovieName;
        lblReleasedS.Text = "Start date:" + sart.Day + "-" + sart.Month + "-" + sart.Year + "    End date:" + end.Day + "-" + end.Month + "-" + end.Year;
        lblFilmDirectorS.Text = mv.FilmDirector;
        lblActorsS.Text = mv.Actors;
        lblCategoryS.Text = mv.Category;
        lblCountryS.Text = mv.country;
        lblAM.Text = mv.AboutUsFile;
    }
}